package com.qcby.service.Impl;

import com.qcby.dao.EduMapper;
import com.qcby.entity.Edu;
import com.qcby.service.EduService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 阿笙
 */
@Service("EduService")
public class EduServiceImpl implements EduService {
    @Autowired
    private EduMapper eduMapper;

    @Override
    public List<Edu> listEdu() {
        return eduMapper.listEdu();
    }

    @Override
    public int deleteEdu(Integer id) {
        return eduMapper.deleteEdu(id);
    }


    @Override
    public List<Edu> eduFind(String edu) {
        return eduMapper.eduFind(edu);
    }

    @Override
    public int insert(Edu record) {
        return eduMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(Edu edu) {
        return eduMapper.updateByPrimaryKey(edu);
    }

    @Override
    public List<Edu> selectById(Integer id) {
        return eduMapper.selectById(id);
    }
}
